package com.rede.didiok.user.entity;

import java.util.Date;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rede.didiok.common.entity.SuperEntity;

/**
 * 勋章表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-13 10:45:33
 */
@Data
@TableName("u_medal")
public class MedalEntity extends SuperEntity<MedalEntity> {
	private static final long serialVersionUID = 1L;

	/**
	 * 勋章图标url
	 */
	private String fileUrl;
	/**
	 * 勋章分类uid
	 */
	private String medalClassifyUid;
	/**
	 * 勋章名称
	 */
	private String name;
	/**
	 * 勋章简介
	 */
	private String summary;
	/**
	 * 是否上架
	 */
	private Integer isPublish;

	/**
	 * 排序字段，越大越靠前
	 */
	private Integer sort;

	// 以下字段不存入数据库

	/**
	 * 勋章获取时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(exist = false)
	private Date gainTime;

	/**
	 * 勋章分类
	 */
	@TableField(exist = false)
	private MedalClassifyEntity medalClassify;


	/**
	 * 获得频率
	 */
	@TableField(exist = false)
	private String gainProbability;



}
